package _spring_test._tests;

import _spring_test.Car;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author: huangya
 * @Date: 2019/8/30
 * @Description:
 */
public class FactoryBeanTest {

    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("application-factory-bean.xml");
        Car car = (Car) ac.getBean("car");
        System.out.println(car);
    }
}
